﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VehicleOOBWeb.Models
{
    public class PersonInfoService
    {
        public static Personallnfo GetPersonalInfo(string userName)
        {
            using (DataVehicleDataContext db = new DataVehicleDataContext())
            {
                return db.Personallnfos.FirstOrDefault(pi => pi.username.ToLower() == userName.ToLower().Trim());
            }
        }
    }
}